//
//  ImageControlM.h
//  jhf
//
//  Created by Mac on 2020/7/31.
//

#import <CooperSDK/JDefine.h>
#import "ViewControlM.h"

NS_ASSUME_NONNULL_BEGIN

@interface ImageControlM : ViewControlM

@property (nonatomic, assign) UIViewContentMode contentMode;

// 所有的
@property (nonatomic, strong) NSArray <NSString *> *imageUrls;

// 链接
@property (nonatomic, copy) NSString *imageUrl;

// 本地图片名字
@property (nonatomic, copy) NSString *imageName;

// 图片资源
@property (nonatomic, strong) UIImage *imageSource;

// 是否显示大图
@property (nonatomic, assign) BOOL isShow;

// 模糊
@property (nonatomic, assign) BOOL isBlur;

// 等比例缩放
@property (nonatomic, assign) BOOL isReal;

// 缩放
@property (nonatomic, assign) BOOL isScale;

// 高
@property (nonatomic, assign) CGFloat imageHeight;
// 宽
@property (nonatomic, assign) CGFloat imageWidth;

// 外边距
@property (assign, nonatomic) UIEdgeInsets paddingInsets;

// 图片的占位图
@property (nonatomic, copy) NSString *imagePlaceholder;
@property (nonatomic, strong) UIImage *imagePlaceSource;

+ (ImageControlM *)defaultIMGUrl:(NSString *)url;

+ (ImageControlM *)defaultIMGName:(NSString *)name;

+ (ImageControlM *)defaultIMGSource:(UIImage *)imageSource;

- (void)controlIMG:(UIImageView *)imgV blockBool:(BlockBool)block;

- (CGFloat)cellHeight;

@end

NS_ASSUME_NONNULL_END
